//
//  YXOrderListView.m
//  跑跑快销
//
//  Created by 杨潇 on 14-5-5.
//  Copyright (c) 2014年 ylife. All rights reserved.
//

#import "YXOrderListView.h"

@implementation YXOrderListView
@synthesize calendarBtn,nameLab,dateLab,salesreturn;

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        self.backgroundColor = [UIColor grayColor];
        calendarBtn = [UIButton buttonWithType:UIButtonTypeSystem];
        calendarBtn.backgroundColor = [UIColor colorWithRed:10.0 green:10.0 blue:10.0 alpha:1];
        calendarBtn.frame = CGRectMake(0, 0, 320, 40);
        calendarBtn.layer.shadowColor = [UIColor blackColor].CGColor;
        calendarBtn.layer.shadowOffset = CGSizeMake(0, 3);
        [self addSubview:calendarBtn];
        
        nameLab = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 320, 20)];
        nameLab.font = [UIFont boldSystemFontOfSize:16];
        nameLab.textAlignment = NSTextAlignmentCenter;
        [calendarBtn addSubview:nameLab];
        
        dateLab = [[UILabel alloc] initWithFrame:CGRectMake(0, 20, 320, 20)];
        dateLab.font = [UIFont systemFontOfSize:12];
        dateLab.textAlignment = NSTextAlignmentCenter;
        [calendarBtn addSubview:dateLab];
        
        UIView * downVi = [[UIView alloc] initWithFrame:CGRectMake(0, [UIScreen mainScreen].bounds.size.height - STARTY - 40, 320, 40)];
        downVi.backgroundColor = [UIColor whiteColor];
        [self addSubview:downVi];
        
        salesreturn = [UIButton buttonWithType:UIButtonTypeSystem];
        salesreturn.backgroundColor = [UIColor whiteColor];
        salesreturn.frame = CGRectMake(120, 5, 80, 30);
        salesreturn.layer.borderColor = [UIColor blackColor].CGColor;
        salesreturn.layer.borderWidth = .5;
        salesreturn.layer.cornerRadius = 5;
        [salesreturn setTitle:@"查看退货" forState:UIControlStateNormal];
        [downVi addSubview:salesreturn];
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
